package com.myapplication;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.ListView;

public class TestListView extends ListView {
    private static final String TAG = "TestListView";
    public TestListView(Context context) {
        super(context);
    }

    public TestListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public TestListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        boolean ret= super.onTouchEvent(ev);
        Log.i(TAG, "onTouchEvent[" + ev.getAction() + "]=" + ret);
        return ret;
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        boolean ret= super.onInterceptTouchEvent(ev);
        Log.i(TAG, "onInterceptTouchEvent[" + ev.getAction() + "]=" + ret);
        return ret;
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        boolean ret = super.dispatchTouchEvent(ev);
        Log.i(TAG, "dispatchTouchEvent[" + ev.getAction() + "]=" + ret);
        return ret;
    }
}
